home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Applications 1999 May / SGI IRIX 6.5 Applications 1999 May.iso / dist / demos.idb / usr / demos / Demo_Interfaces / Web / cgi-scripts / update_tables.z / update_tables
Text File  |  1999-04-09  |  2KB  |  51 lines

  1. #!/usr/sbin/perl
  2.  
  3. #**************************************************************************
  4. #*                                                                        *
  5. #*            Copyright (c) 1996 Silicon Graphics, Inc.                   *
  6. #*                      All Rights Reserved                               *
  7. #*                                                                        *
  8. #*         THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF SGI             *
  9. #*                                                                        *
  10. #* The copyright notice above does not evidence any actual of intended    *
  11. #* publication of such source code, and is an unpublished work by Silicon *
  12. #* Graphics, Inc. This material contains CONFIDENTIAL INFORMATION that is *
  13. #* the property of Silicon Graphics, Inc. Any use, duplication or         *
  14. #* disclosure not specifically authorized by Silicon Graphics is strictly *
  15. #* prohibited.                                                            *
  16. #*                                                                        *
  17. #* RESTRICTED RIGHTS LEGEND:                                              *
  18. #*                                                                        *
  19. #* Use, duplication or disclosure by the Government is subject to         *
  20. #* restrictions as set forth in subdivision (c)(1)(ii) of the Rights in   *
  21. #* Technical Data and Computer Software clause at DFARS 52.227-7013,      *
  22. #* and/or in similar or successor clauses in the FAR, DOD or NASA FAR     *
  23. #* Supplement. Unpublished - rights reserved under the Copyright Laws of  *
  24. #* the United States. Contractor is SILICON GRAPHICS, INC., 2011 N.       *
  25. #* Shoreline Blvd., Mountain View, CA 94039-7311                          *
  26. #**************************************************************************
  27.  
  28. # update_tables
  29. #
  30. # Updates the tables from the command line
  31.  
  32. chdir("/usr/demos/Demo_Interfaces/Web/cgi-scripts");
  33.  
  34. # Include appropriate scripts
  35. require "DEMO_includes.pl";
  36.  
  37. # Record action in error log
  38. &Print_Error("$ERROR_INFO","Updating Tables","$STATUS_MINOR");
  39.  
  40.  
  41. # Update the tables in the background
  42.  
  43. &Parse_List_Demos;
  44.  
  45. &Read_Tables;
  46. &Update_Hardware_Table;
  47. &Update_Features_Table;
  48. &Update_Markets_Table;
  49. &Read_Tables;
  50. &Verify_Custom_Lists;
  51.